<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:dt="http://java.sun.com/jsf/composite/components"
                xmlns:p="http://primefaces.org/ui"
                template="./template2.xhtml">
    
    <ui:define name="mainContent">
        <h2>LoL Season 2</h2>
        <a href="league_admin.xhtml">#{leagueBean.adminPanel}</a>
                <div class="inset">
                        <h4 class="fancy">Teams</h4>
                        <div class="inset">
                            <h:panelGrid id="teams" >
                                <ui:repeat value="#{leagueBean.teams}" var="team" >
                                    <h5><p:commandLink value="#{team}" action="#{leagueBean.teamRedirect}" >
                                    <f:setPropertyActionListener target="#{leagueBean.activeTeam}" value="#{team}" />
                                    </p:commandLink></h5>
                                    <div class="inset">
                                        <p>#{leagueBean.activeTeamWinHistory}</p>
                                    </div>
                                </ui:repeat>
                            </h:panelGrid>
                        </div>

                        <!-- a href="#"><h4> Download Now!</h4></a -->	
                </div>
    </ui:define>
    
</ui:composition>